Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crave/farmblocks-popover

Package Overview
Dependencies
Maintainers
6
Versions
697
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crave/farmblocks-popover

A customisable popover component

  • 2.2.37
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Farmblocks popover

A customisable popover component

2018-06-15 11 22 29

Installation

npm install @crave/farmblocks-popover

Usage

<Popover
  trigger={<button>Trigger</button>}
  content={dismiss => (
    <div>
      <Text>Popover content</Text>
      <button onClick={dismiss}>Dismiss</button>
    </div>
  )}
/>

API

PropertyDescriptionTypeRequiredDefault
triggerA node that will be popover's trigger. Can also be a function that receives isVisible state and returns a nodenode or func => nodeYes
contentA render function with the contents to be displayed on the popoverfunc => nodeYes
tooltipPropsProps to be passed to Tooltip componentobject
triggerWidthA CSS value for the trigger container widthstringauto
onOpencalled when the popover opensfunc
onBeforeOpencalled before the popover opens. If the given function returns a Promise, the popover will wait until it resolve to openfunc
onClosecalled when the popover closesfunc
disabledprevents the popover to open when the trigger is clicked.boolfalse

License

MIT

Keywords

FAQs

Package last updated on 09 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc